home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc1_2_x / fretext1.sit / Free Text Help_Services v1.01 / card_19204.txt < prev    next >
Text File  |  1990-04-13  |  1KB  |  29 lines

  1. -- card: 19204 from stack: in.01
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 3166
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 1
  9. ----- text -----
  10.  * function to turn on or off bits in a subset according to their
  11.  * proximity to a given word's occurrences:
  12.  *
  13.  *  ("SETSUBSETBITS", wordNum, neighborhoodSize, setOrClear,
  14.  *    keyFileRefNum, ptrFileRefNum, subsetHandle)
  15.  *  --  returns quietly with nothing if it is successful in setting or
  16.  *      clearing (depending on setOrClear's value, 0 or non-0) the
  17.  *      bits in the subset flag array in the neighborhood of the
  18.  *      chosen word(s); gives an error msg if there was a problem.
  19.  *      neighborhoodSize is in characters and is used to determine
  20.  *      how many bits to set/clear on each side of the instances...
  21.  *
  22.  * function to grab a chunk of text:
  23.  *
  24.  *  ("TEXT", textPtr, textChunkSize, textOffset, textFileRefNum)
  25.  *  --  returns with (if possible; see below)
  26.  *      textChunkSize bytes of text from the text file,
  27.  *      starting at byte number textPtr-textOffset+1 and ending
  28.  *      just before byte number textPtr-textOffset+textChunkSize+1.
  29.